<template>
  <div id="Box">
      <Add :name='name' :class_='class_'/>
       <button @click='add'>新增</button>
       <Tab :student='students' :name='name' :class_='class_'/>
  </div>
</template>

<script>

import Tab from './Tab.vue';
import Add from './Add.vue';
export default {
  name: 'Box',
  components: {
    Tab,
    Add,
  },
  data(){
      return{
        //新增的隐藏
        show:false,
        name:'',
        class_:'',
        id:'',
        //默认是新增
        flag:true,
        //绑定的类del
        students:[{id:1,name:'小红',class:1,del:false},{id:2,name:'小黄',class:2,del:false},{id:3,name:'小绿',class:1,del:false},]
               
      }
  },
  methods:{
      add(){

      }
  }
}
</script>

<style>
</style>
